linear transformation of the matrix